<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet 
	version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 	xmlns:svg="http://www.w3.org/2000/svg">
	
	<xsl:output method="xml"/>
	
	<xsl:param name="c1" select="'0, 0, 0'"/>
	<xsl:param name="c2" select="'235, 235, 235'"/>
	<xsl:param name="r" select="0"/>
	<xsl:param name="w" select="300"/>
	<xsl:param name="h" select="300"/>
			
	<xsl:template match="/">
		<svg xmlns="http://www.w3.org/2000/svg" width="{$w}" height="{$h}">
		  <defs>
		    <linearGradient id="gradient" x1="20%" y1="20%" x2="20%" y2="60%">
			    <stop offset="0%" stop-color="rgb({$c1})" />
		      	<stop offset="100%" stop-color="rgb({$c2})" />
		    </linearGradient>
		  </defs>
		  <rect width="100%" height="100%" rx="{$r}" ry="{$r}" fill="url(#gradient)" />
		</svg>
	</xsl:template>

</xsl:stylesheet>
